package com.carkeeper.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;



/**
 * @version : 1.0
 * @outhor : zwk
 * @data : Create in 2020-05-26
 * @description :
 */
@Data
@TableName(value = "tb_employee",resultMap = "employeeMapper")
public class EmployeePO extends AbstractBasePO {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String name;
    private String phone;
    private String email;
    private Long departmentId; //所属部门id
    private Integer accountStatus; //账号状态 1/2
    private Integer status;        //员工状态 1/2
    private String username;
    private String password;
    @TableField(exist = false)
    private DepartmentPO department;
}
